package com.dy.convert;

import com.dy.dto.UserDTO;
import com.dy.entity.User;
import org.mapstruct.Mapper;

/**
 * @Author: dy
 * @date: 2024/5/8 15:12
 * @ClassDescription:
 */
@Mapper(componentModel = "spring")
public interface UserConvert {

    /**
     * 注册
     * @param dto dto
     * @return {@link User}
     */
    User userDtoToUser(UserDTO dto);
}
